package org.zebra.logging.enums;

/**
 * 业务操作类型
 *
 * @author zb
 */
public enum BusinessType {
    /**
     * 0其它
     */
    OTHER(0, "其它"),

    /**
     * 1新增
     */
    INSERT(1, "新增"),

    /**
     * 2修改
     */
    UPDATE(2, "修改"),

    /**
     * 3删除
     */
    DELETE(3, "删除"),

    /**
     * 4授权
     */
    GRANT(4, "授权"),

    /**
     * 5导出
     */
    EXPORT(5, "导出"),

    /**
     * 6导入
     */
    IMPORT(6, "导入"),

    /**
     * 7登录
     */
    lOGIN(7, "登录"),

    /**
     * 8退出
     */
    LOGOUT(8, "退出"),

    RESET(9, "重置");

    private int code;
    private String msg;

    BusinessType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return this.msg;
    }
}
